<?php

class spAnchor extends spElement
{
	public function __construct( $param=null )
	{
		parent::__construct( "a", $param);
		parent::setMustHaveEndingTag( true );

		if ( isset($param["href"]) )
			parent::addAttr( "href", $param["href"] );
			
		if ( isset($param["onclick"]) )
			parent::addAttr( "onclick", $param["onclick"] );

	}
}

?>